home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 155 / XENIATGM155.iso / Gioco Allegato / Mods / SWRv0.1.exe / SWRv0.1 / etg / mineformation.ebg < prev    next >
Text File  |  2001-09-15  |  2KB  |  170 lines

  1. #line 1 "d:\\homeworld\\Datasrc\\ETG\\specials\\MineFormation.etg"
  2. #line 1 "d:\\homeworld\\dataSrc\\ETG\\etg.h"
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. #line 71 "d:\\homeworld\\dataSrc\\ETG\\etg.h"
  73.  
  74. #line 1 "d:\\homeworld\\Datasrc\\ETG\\specials\\MineFormation.etg"
  75. #line 1 "d:\\homeworld\\src\\game\\specialeventdefs.h"
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107. #line 1 "d:\\homeworld\\Datasrc\\ETG\\specials\\MineFormation.etg"
  108. eventStart(float damage = 10, float velocity = 20, float length = 10)
  109.  
  110.  
  111. particleBlocks([150 / 0.2 + 1])
  112. variable
  113. {
  114.     int mainLine
  115.     float halfLength
  116. }
  117.  
  118. startup
  119. {
  120.  
  121.     setDefaults()
  122.  
  123.     setLength(length)
  124.     setScale(2)
  125.     setColorA([10 + 255 * 256 + 150 * 65536 + 200 * 65536 * 256])
  126.     setLifespan(150)
  127.     mainLine <- createLines(1,0)
  128. }
  129.  
  130. eachFrame
  131. {
  132.  
  133.     every(0.1)
  134.     {
  135.         setDefaults()
  136.         halfLength <- fdiv(length, 2.0)
  137.         
  138.         
  139.  
  140.             
  141.         setLighting(0)
  142.         setIllum(1)
  143.         setLength(5)
  144.         setLengthDist(5)
  145.         
  146.         
  147.         setLifespan(0.8)
  148.         setDrag(1.0)
  149.         setIsWorldSpace(1)
  150.         createLines(1, 0)
  151.  
  152.         alternate
  153.         {
  154.         alt(1):
  155.         setColorA([5 + 200 * 256 + 150 * 65536 + 50 * 65536 * 256])
  156.         setScale(2)
  157.         alt(1):
  158.         setColorA([50 + 250 * 256 + 100 * 65536 + 50 * 65536 * 256])
  159.         setScale(1)
  160.         alt(2):
  161.         setColorA([5 + 200 * 256 + 150 * 65536 + 50 * 65536 * 256])
  162.         setScale(1)
  163.         }
  164.     }
  165.     modifyLength(mainLine, length)
  166. }
  167.  
  168.  
  169.  
  170.